<?php
namespace App\Services;

use App\Models\CaseModel;
use Framework\BaseService;
class CaseService extends BaseService
{

    public function releaseCase($user_id,$content,$video)
    {

        $model = new CaseModel();
        $model->user_id = $user_id;
        $model->content = $content;
        $model->video_url = $video;
        $model->saveOrFail();
        return true;

    }

    public function getCaseList($page,$size)
    {
        return CaseModel::query()->where('status',1)->forpage($page,$size)->get();
    }
}
